//
//  KQMessageRecallContentView.swift
//  KQChatKit
//
//  Created by kangqiao on 2021/9/15.
//

import UIKit
import KQChatSDK
class KQMessageRecallContentView: UILabel ,KQMessageContentViewType {

    public override init(frame: CGRect) {
        super.init(frame: frame)
        _commonInit()
    }
    public required init?(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)
        _commonInit()
    }
    
    open func apply(_ message: KQMessageType) {
        guard let content = message.content as? KQMessageRecallContent else {
            return
        }
        text = content.text
     
    }
    
    private func _commonInit() {

        font = UIFont(name: KQCHAT_FONT_NAME, size: 12)
        textColor = KQCHAT_COLOR(150, 150, 150)
        textAlignment = .center
    }
}
